package com.len.controller;

import com.len.base.BaseController;
import com.len.entity.SpMemberZh;
import com.len.service.SpMemberZhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("memberZh")
public class SpMemberZhController extends BaseController<SpMemberZh> {
    @Autowired
    private SpMemberZhService spMemberZhService;
    @RequestMapping("/show")
    public String show(SpMemberZh spMemberZh){
        try {
            spMemberZhService.selectByPrimaryKey(spMemberZh);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
    @RequestMapping("/save")
    public String save(SpMemberZh spMemberZh){
        try {
            spMemberZhService.insert(spMemberZh);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
    @RequestMapping("/update")
    public String update(SpMemberZh spMemberZh){
        try {
            spMemberZhService.updateByPrimaryKey(spMemberZh);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
